#include <REGX52.H>
#include <INTRINS.H>
#include "LCD1602.h"
#include "Delay.h"
#include "XPT2046.h"

void main()
{
	unsigned int ADValue = 0;
	
	LCD_Init();
	LCD_ShowString(1,1,"ADJ NTC RG");
	
	
	
	
	while(1)
	{
		ADValue = XPT2046_ReadAd(XPT2046_XP_8);
		LCD_ShowNum(2,1, ADValue ,3);
		ADValue = XPT2046_ReadAd(XPT2046_YP_8);
		LCD_ShowNum(2,5, ADValue ,3);
		ADValue = XPT2046_ReadAd(XPT2046_VBAT_8);
		LCD_ShowNum(2,9, ADValue ,3);
		
		Delay(100);
	}
}
